<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_custlink.*" %>
<%@page import="java.util.*" %>
<html>
  <head>
    
    <title>修改会员友情链接</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="link.js"></script>
</head>

<body>

  <% 
  	String link_id="";
  	if(request.getParameter("link_id")!=null) link_id = request.getParameter("link_id");
  	Ti_custlinkInfo ti_custlinkInfo = new Ti_custlinkInfo();
  	List list = ti_custlinkInfo.getListByPk(link_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String cust_id="",link_name="",link_url="",link_no="",is_display="";
  	if(map.get("cust_id")!=null) cust_id = map.get("cust_id").toString();
  	if(map.get("link_name")!=null) link_name = map.get("link_name").toString();
  	if(map.get("link_url")!=null) link_url = map.get("link_url").toString();
  	if(map.get("link_no")!=null) link_no = map.get("link_no").toString();
  	if(map.get("is_display")!=null) is_display = map.get("is_display").toString();
   
   
   
   String s_cust_name = "";
	if(request.getParameter("search_cust_name")!=null && !request.getParameter("search_cust_name").equals("")){
		s_cust_name = request.getParameter("search_cust_name");
	}
	String s_link_name = "";
	if(request.getParameter("search_link_name")!=null && !request.getParameter("search_link_name").equals("")){
		s_link_name = request.getParameter("search_link_name");
	}
	String s_is_display= "";
	if(request.getParameter("search_is_display")!=null && !request.getParameter("search_is_display").equals("")){
		s_is_display = request.getParameter("search_is_display");
	}

 %>
	
	<h1>修改会员友情链接</h1>
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
	
		<tr>
			<td align="right" width="10%">
				链接名称<font color="red">*</font>
			</td>
			<td><input name="link_name" id="link_name" value="<%=link_name %>" type="text" maxlength="50" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				链接地址<font color="red">*</font>
			</td>
			<td><input name="link_url" id="link_url" value="<%=link_url %>" type="text"maxlength="50"  /></td>
		</tr>
		
				
		<tr>
			<td align="right" width="10%">
				链接图片:
			</td>
			<td>
				<jsp:include page="/program/inc/uploadImgInc.jsp">
					 <jsp:param name="attach_root_id" value="<%=link_id%>" />
				</jsp:include>
			
			</td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				显示顺序:
			</td>
			<td><input name="link_no" id="link_no" value="<%=link_no %>" size="2" maxlength="2" type="text" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				是否显示:
			</td>
			<td>
				<input name="is_display" id="is_display_1" value="0" type="radio" <%if (is_display.equals("0")){out.print("checked");}%>/>是
				<input name="is_display" id="is_display_2" value="1" type="radio" <%if (is_display.equals("1")){out.print("checked");}%>/>否
			</td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="8153" />
	  			<input type="hidden" name="link_id" value="<%=link_id %>" />
				<input type="button" class="buttoncss" name="tradeSub" onclick="return checkInfo()"  value="提交" />&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="javascript:history.back();"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
